//路由劫持
var arr = window.location.pathname.split('/');
var pageName = arr[arr.length - 1];
// console.log(pageName)
switch(pageName) {
	case 'play.html':
	case 'detailPage.html':
		var token = $.cookie('TV_CST_TOKEN');
		if(token != "" || token != 'undefined' || token != undefined || token != null) {
			var params = {
				cid: TV.GetParam("id"),
				type: "tv",
				access_token: token,
			};
			http(API_URL.baseURL +"article/addRecords", params, function(err, res) {});
		}
		break;
}

